package ltd.dujiabao.capability.adapter.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author : DuJiabao
 * @Project : ddd-capability
 * @Time : 2024/4/15 22:24
 * @Desc :
 */
public class PropertiesMetadata {
    private final String beanName;
    private final Object bean;
    private final ConfigurationProperties configurationProperties;

    private final LiveUpdateReminder liveUpdateReminder;


    public PropertiesMetadata(String beanName, Object bean,
                              ConfigurationProperties configurationProperties, LiveUpdateReminder liveUpdateReminder) {
        this.configurationProperties = configurationProperties;
        this.beanName = beanName;
        this.bean = bean;
        this.liveUpdateReminder = liveUpdateReminder;
    }

    public ConfigurationProperties getConfigurationProperties() {
        return configurationProperties;
    }

    public String getBeanName() {
        return beanName;
    }

    public Object getBean() {
        return bean;
    }

    public LiveUpdateReminder getLiveUpdateReminder() {
        return liveUpdateReminder;
    }
}
